CC=gcc
CFLAGS = -Wall -Wextra -pedantic -O3 -std=c99
OBJ = frame.o process.o die.o
BIN = sixpipes
all: $(OBJ) $(BIN)

sixpipes: $(OBJ)
	$(CC) $(CFLAGS) -o $@ $@.c $^

%.o: %.c
	$(CC) $(CFLAGS) -c $<

.PHONY: clean

clean:
	rm -rv $(OBJ) $(BIN)
